package com.kkwrite.regimen.common.entity.dto.income;

import java.io.Serializable;

/**
 * Created by lisha on 2018/8/8 17:24.
 *
 * @author lisha
 */
public class IncomeCountOutDTO implements Serializable {
    private static final long serialVersionUID = 4062842475577068125L;
    private Double total;
    private Double inTotal;
    private Double outTotal;
    private Double extractCashPendingProcess;

    public IncomeCountOutDTO() {
        super();
    }

    private IncomeCountOutDTO(Double total, Double inTotal, Double outTotal) {
        this.total = total;
        this.inTotal = inTotal;
        this.outTotal = outTotal;
    }

    public static IncomeCountOutDTO of(Double total) {
        return new IncomeCountOutDTO(total, total, total);
    }

    public static IncomeCountOutDTO of(Double total, Double inTotal, Double outTotal) {
        return new IncomeCountOutDTO(total, inTotal, outTotal);
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public Double getInTotal() {
        return inTotal;
    }

    public void setInTotal(Double inTotal) {
        this.inTotal = inTotal;
    }

    public Double getOutTotal() {
        return outTotal;
    }

    public void setOutTotal(Double outTotal) {
        this.outTotal = outTotal;
    }

    public Double getExtractCashPendingProcess() {
        return extractCashPendingProcess;
    }

    public void setExtractCashPendingProcess(Double extractCashPendingProcess) {
        this.extractCashPendingProcess = extractCashPendingProcess;
    }

    @Override
    public String toString() {
        return "IncomeCountOutDTO{" +
                "total=" + total +
                ", inTotal=" + inTotal +
                ", outTotal=" + outTotal +
                ", extractCashPendingProcess=" + extractCashPendingProcess +
                '}';
    }
}
